package string_;

/**
 * @author wly
 * @version V1.0.0
 * @date 2022/12/20 22:36
 */
public class String01 {
    public static void main(String[] args) {
        String a = "wly";
        String b = new String("wly");
        System.out.println(a.equals(b));  //true
        System.out.println(a == b);  //false

        System.out.println(a == b.intern());  //true
        System.out.println(b == b.intern());  //false
    }
}
